Skip to content

Conversation

luisbg
Copy link
Contributor

@luisbg luisbg commented Dec 28, 2013

Issue #11048

doc/rust.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crate_id is the attribute name

@emberian
Copy link
Contributor

Thanks! Needs a rebase along with the above fixes.

@luisbg
Copy link
Contributor Author

luisbg commented Dec 29, 2013

Your comments have been fixed and the commits rebased :)

@luisbg
Copy link
Contributor Author

luisbg commented Dec 29, 2013

Tested locally twice and it passed all tests.

bors added a commit that referenced this pull request Dec 30, 2013
@bors bors closed this Dec 30, 2013
@bors bors merged commit 51b5f32 into rust-lang:master Dec 30, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 31, 2023
[`needless_pass_by_ref_mut`]: Do not lint if passed as a fn-like argument

Fixes rust-lang#11182 and also fixes rust-lang#11199 (though this is kind of a duplicate)

There's likely a case or two I've missed, so this likely needs a bit more work but it seems to work fine with the tests I've added.

PS, the diff for the test is useless because it iterates over a hashmap before linting. Seems to work fine but we could maybe change this for consistency's sake

changelog: [`needless_pass_by_ref_mut`]: No longer lints if the function is passed as a fn-like argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants